class zhifalistbean {
  int code;
  String message;
  List<Result> result;
  bool success;
  var timestamp;

  zhifalistbean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  zhifalistbean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String allocatedDate;
  var checkId;
  String createTime;
  var id;
  var lat;
  String lineName;
  var lon;
  String questionAddress;
  String questionDescription;
  var questionType;
  String sitePhotosUrl;
  String solveDate;
  String solveResults;
  String solveUser;
  String solveUserName;
  var status;
  String userName;

  Result(
      {this.allocatedDate,
        this.checkId,
        this.createTime,
        this.id,
        this.lat,
        this.lineName,
        this.lon,
        this.questionAddress,
        this.questionDescription,
        this.questionType,
        this.sitePhotosUrl,
        this.solveDate,
        this.solveResults,
        this.solveUser,
        this.solveUserName,
        this.status,
        this.userName});

  Result.fromJson(Map<String, dynamic> json) {
    allocatedDate = json['allocatedDate'];
    checkId = json['checkId'];
    createTime = json['createTime'];
    id = json['id'];
    lat = json['lat'];
    lineName = json['lineName'];
    lon = json['lon'];
    questionAddress = json['questionAddress'];
    questionDescription = json['questionDescription'];
    questionType = json['questionType'];
    sitePhotosUrl = json['sitePhotosUrl'];
    solveDate = json['solveDate'];
    solveResults = json['solveResults'];
    solveUser = json['solveUser'];
    solveUserName = json['solveUserName'];
    status = json['status'];
    userName = json['userName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['allocatedDate'] = this.allocatedDate;
    data['checkId'] = this.checkId;
    data['createTime'] = this.createTime;
    data['id'] = this.id;
    data['lat'] = this.lat;
    data['lineName'] = this.lineName;
    data['lon'] = this.lon;
    data['questionAddress'] = this.questionAddress;
    data['questionDescription'] = this.questionDescription;
    data['questionType'] = this.questionType;
    data['sitePhotosUrl'] = this.sitePhotosUrl;
    data['solveDate'] = this.solveDate;
    data['solveResults'] = this.solveResults;
    data['solveUser'] = this.solveUser;
    data['solveUserName'] = this.solveUserName;
    data['status'] = this.status;
    data['userName'] = this.userName;
    return data;
  }
}
